package com.wlscale.roadsystem.modular.setting;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;

import com.easy.component.component.header.EasyHeaderBuilder;
import com.wlscale.roadsystem.R;
import com.wlscale.roadsystem.base.LZBaseActivity;
import com.wlscale.roadsystem.modular.setting.adapter.AxisNumberCorrectAdapter;

/**
 * 轴型校准
 */
public class AxisNumberCorrectActivity extends LZBaseActivity implements View.OnClickListener {
    /**
     *
     */
    private EasyHeaderBuilder easyHeaderBuilder;
    /**
     *
     */
    private RecyclerView recyclerView;
    /**
     * 关闭
     */
    private Button btn_cancel;
    /**
     *
     */
    private AxisNumberCorrectAdapter adapter;

    @Override
    public void initlayoutResID() {
        setContentView(R.layout.activity_manage_axisnum_correct);
    }

    @Override
    public void initBundle() {

    }

    @Override
    public void initView() {
        btn_cancel = findViewById(R.id.btn_cancel);
        btn_cancel.setOnClickListener(this);


        recyclerView = findViewById(R.id.manage_axisnum_correct_listview);
        adapter = new AxisNumberCorrectAdapter(this);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(adapter);
    }

    @Override
    public void initHeader() {
        easyHeaderBuilder = new EasyHeaderBuilder(this);
        easyHeaderBuilder.addLeftImageBackView();
        easyHeaderBuilder.setTitle("轴型校准");
        easyHeaderBuilder.addLeftImageBackListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finishActivity();
            }
        });
    }

    @Override
    public void initLoadingView() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_cancel:
                finishActivity();
                break;
        }
    }
}
